﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AppAdmin
{
    public class BaseController : Controller
    {
        //
        // GET: /Base/

        public ActionResult Index()
        {
            return View();
        }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {

            if (HttpContext != null)
            {
                if (HttpContext.Session["UserId"] != null)
                {


                }
                else
                {
                    filterContext.Result = new RedirectResult("/Account/LogOn");
                }
            }
            base.OnActionExecuting(filterContext);
        }

    }
}
